package com.dsx.utils;

import com.dsx.config.shiro.AccountProfile;
import com.dsx.entity.User;
import org.apache.shiro.SecurityUtils;

/**
 * @author dsx
 * @date 2021/3/31 17:19
 * @since JDK1.8
 */
public class ShiroUtil {
    public static AccountProfile getAccountProfile(){
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
